package com.example.yeujian5.yuejian5.service;

import com.example.yeujian5.yuejian5.bean.ClubBean;
import com.example.yeujian5.yuejian5.bean.PictureBean;
import com.example.yeujian5.yuejian5.bean.PictureInfo;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by 7h0rns on 2017/10/11.
 */

public interface PictureService {
    @GET("/workout/api.php/lists/mod/shaitu/related/1")
    Call<List<PictureBean>> photolist(
    );

    @GET("slists/mod/shaireply/")
    Call<List<PictureInfo>> getPictureInfo(
            @Query("related") int related,
            @Query("shaitu_id") String shaitu_id

    );

    @GET("create/mod/shaireply")
    Call<String> getshaireply(
            @Query("shaitu_id") String shaitu_id,
            @Query("userid") String userid,
            @Query("reply_userid") String reply_userid,
            @Query("reply") String reply


    );
    @GET("/workout/api.php/get/mod/shaitu/related/1")
    Call<PictureBean> getPhotoById(
            @Query("id") String id
    );
    //晒图评论
    @GET("/workout/api.php/create/mod/shaireply/SessionID/lgj98rfkiqvenhrk2o7oe2po81")
    Call<Integer> insertComment(
            @Query("shaitu_id") String shaitu_id,
            @Query("userid") String userid,
            @Query("reply_userid") String reply_userid,
            @Query("reply") String reply
    );
}
